﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
//using System.Data;

namespace ATM
{
    public partial class allTransactions : Form
    {
        public allTransactions()
        {
            InitializeComponent();
        }

        private void allTransactions_Load(object sender, EventArgs e)
        {
            adminLogic al = new adminLogic();
            DataSet ds = al.showAllTransactions();
            allTransactionsView.DataSource = ds.Tables[0];
            allTransactionsView.Show();
        }

        private void allTransactionsView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void exit_Click(object sender, EventArgs e)
        {
            welcom welconeForm = new welcom();
            this.Hide();
            welconeForm.Show();
        }

        private void back_Click(object sender, EventArgs e)
        {
            adminMainPanel admForm = new adminMainPanel();
            this.Hide();
            admForm.Show();
        }
    }
}
